/**
* This file is part of OntoCompoFramework
*
* Copyright (C) 2011 -  Christian Brel
*
* @author   Main    Christian Brel
**/
package ontocompo.ui.selection;

import java.awt.Color;

import javax.swing.JComponent;
import javax.swing.border.Border;

import ontocompo.ui.appmanagement.Application;

public class SelectedComponent {

	private Border border;
	private Color bg;
	private boolean opaque;
	
	private JComponent component;
	
	private Application app;
	
	private boolean isExtract;
	
	public SelectedComponent(Border border, Color bg, boolean opaque, JComponent component, Application app) {
		this.border = border;
		this.bg = bg;
		this.opaque = opaque;
		
		this.component = component;
		
		this.app = app;
		
		this.isExtract = false;
	}
	
	public Border getBorder() {
		return this.border;
	}
	
	public Color getBg() {
		return this.bg;
	}
	
	public boolean getOpaque() {
		return this.opaque;
	}
	
	public JComponent getComponent() {
		return this.component;
	}
	
	public Application getApplication() {
		return this.app;
	}
	
	public boolean isExtract() {
		return this.isExtract;
	}
	
	public void setExtracted() {
		this.isExtract = true;
	}
}
